package com.xmu.makerspace.dao;

import com.xmu.makerspace.domain.TempTeam;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.Repository;

import java.util.List;

/**
 * Created by status200 on 2017/8/9.
 */
public interface TempTeamRepository extends CrudRepository<TempTeam,String> {

    int countByTeamNameAndTeamIdNot(String teamName, String teamId);

    TempTeam findByTeamId(String teamId);

    List<TempTeam> findAll();
}
